package com.shanwen.shopping.entity;

import org.greenrobot.greendao.annotation.Entity;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * 商品信息
 */
@Entity
public class GoodsInfo implements Serializable {
    private static final long serialVersionUID = 3881469837573136844L;


    /**
     * activityPrice : 0
     * baseUrl : http://42.121.253.209:8081/lqsw_website/buy/buy.jsp
     * coverUrl : http://42.121.255.86:6080/group1/M00/2D/3D/F_ageYiqnzqdaEMXyY.jpg
     * detailUrl : http://42.121.255.86/qyyd/zqsw/html/views/290.html
     * goodsId : 290
     * goodsType : 0
     * marketPrice : 0
     * saleNum : 0
     * salePrice : 2990
     * title : 高露洁健白防蛀牙膏
     */

    @Id(autoincrement = true)
    private Long _id;
    /** 活动价格，单位分 */
    private long activityPrice;
    /** 商品基本信息url */
    private String baseUrl;
    /** 商品封面url */
    private String coverUrl;
    /** 商品详情url */
    private String detailUrl;
    private long goodsId;
    /** 商品类型 0=常规商品 1=代金券 */
    private int goodsType;
    /** 商品市场价格 */
    private long marketPrice;
    /** 商品销售量 */
    private long saleNum;
    /** 商品销售价格，单位分 */
    private long salePrice;
    /** 商品标题 */
    private String title;

    private int num;

    @Generated(hash = 1884915288)
    public GoodsInfo(Long _id, long activityPrice, String baseUrl, String coverUrl,
            String detailUrl, long goodsId, int goodsType, long marketPrice,
            long saleNum, long salePrice, String title, int num) {
        this._id = _id;
        this.activityPrice = activityPrice;
        this.baseUrl = baseUrl;
        this.coverUrl = coverUrl;
        this.detailUrl = detailUrl;
        this.goodsId = goodsId;
        this.goodsType = goodsType;
        this.marketPrice = marketPrice;
        this.saleNum = saleNum;
        this.salePrice = salePrice;
        this.title = title;
        this.num = num;
    }

    @Generated(hash = 1227172248)
    public GoodsInfo() {
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public long getActivityPrice() {
        return activityPrice;
    }

    public void setActivityPrice(long activityPrice) {
        this.activityPrice = activityPrice;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }

    public long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(long goodsId) {
        this.goodsId = goodsId;
    }

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public long getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(long marketPrice) {
        this.marketPrice = marketPrice;
    }

    public long getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(long saleNum) {
        this.saleNum = saleNum;
    }

    public long getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(long salePrice) {
        this.salePrice = salePrice;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }


    @Override
    public String toString() {
        return "GoodsInfo{" +
                "activityPrice=" + activityPrice +
                ", baseUrl='" + baseUrl + '\'' +
                ", coverUrl='" + coverUrl + '\'' +
                ", detailUrl='" + detailUrl + '\'' +
                ", goodsId=" + goodsId +
                ", goodsType=" + goodsType +
                ", marketPrice=" + marketPrice +
                ", saleNum=" + saleNum +
                ", salePrice=" + salePrice +
                ", title='" + title + '\'' +
                ", num=" + num +
                '}';
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }
}
